package com.soft.javase.ch04.test02;

/**
 * @author wangzhisen
 * @Desc TODO
 * @date 2025/4/22
 * （4）编写一个测试类，产生一个员工和一个经理给该员工和经理涨工资，
 *  并输出其具有的信息。　
 */
public class Test {
    public static void main(String[] args) {
        Employee employee = new Employee("张三" , "北京五环" ,"101" , 5000 , 8);
        Manager manager = new Manager("李四" , "北京四合院" ,"102" ,10000 ,10 ,"经理");

        System.out.println("涨薪前员工信息：");
        System.out.println(employee);
        System.out.println("涨薪前经理信息：");
        System.out.println(manager);

        employee.raiseSalary();
        manager.raiseSalary();

        System.out.println("涨薪后员工信息：");
        System.out.println(employee);
        System.out.println("涨薪后经理信息：");
        System.out.println(manager);
    }
}
